package com.xuxin.nantai.contract;

import com.xuxin.nantai.bean.BaseBean;
import com.xuxin.nantai.bean.GroupBean;
import com.xuxin.nantai.bean.InspectorBean;
import com.xuxin.nantai.bean.SelectFlowingBean;
import com.xuxin.nantai.presenter.SelectUpdatePresenter;

/**
 * Created by xu_xin
 * Created on 2020.06.12 0012
 */
public interface SelectUpdateContract {

    interface Model {

        void getInspector(SelectUpdatePresenter presenter, String loginName, String TeamType);

        void getSelectFlowing(SelectUpdatePresenter presenter, String FlowingCode, String inspectorCode, String loginName);

        void getGroups(SelectUpdatePresenter presenter);

        void save(SelectUpdatePresenter presenter,
                  String LoginName,
                  String UserName,
                  String Guid,//唯一Guid
                  String ID,//唯一ID
                  String team,//组检单检
                  int reCheck,//是否复检
                  String flowingCode,//流转单号
                  String cInvName,//成品名
                  String cInvCode,//成品编码
                  String packNum,//本包数
                  String comNum,//部件数
                  String percent,//抽检比例
                  String checkNum,//抽检数
                  String area,//厂区
                  String groupName,//生产组别名称
                  String groupCode,//生产组别代码
                  String inspectorName,//巡检员名
                  String inspectorCode,//巡检员代码
                  String inspectorTime,//检验日期
                  String result,//判定结果
                  String mark);
    }

    interface View extends BaseContract.view {

        void onSuccess(InspectorBean inspectorBean);

        void onSuccess(SelectFlowingBean selectFlowingBean);

        void onSuccess(GroupBean groupBean);

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getInspector(String loginName, String TeamType);

        void getSelectFlowing(String FlowingCode,String inspectorCode,String loginName);

        void getGroups();

        void save(String LoginName,
                  String UserName,
                  String Guid,//唯一Guid
                  String ID,//唯一ID
                  String team,//组检单检
                  int reCheck,//是否复检
                  String flowingCode,//流转单号
                  String cInvName,//成品名
                  String cInvCode,//成品编码
                  String packNum,//本包数
                  String comNum,//部件数
                  String percent,//抽检比例
                  String checkNum,//抽检数
                  String area,//厂区
                  String groupName,//生产组别名称
                  String groupCode,//生产组别代码
                  String inspectorName,//巡检员名
                  String inspectorCode,//巡检员代码
                  String inspectorTime,//检验日期
                  String result,//判定结果
                  String mark);

        void onSuccess(InspectorBean inspectorBean);

        void onSuccess(SelectFlowingBean selectFlowingBean);

        void onSuccess(GroupBean groupBean);

        void onSuccess(BaseBean baseBean);
    }
}